Skip to content

#991 ux improvements: OIDC Login Label - #1022

Open
DerDummePunkt wants to merge 5 commits into
gotify:masterfrom
DerDummePunkt:github_991_ux_improvments_configurable_oidc_login_button_text
Open

#991 ux improvements: OIDC Login Label#1022
DerDummePunkt wants to merge 5 commits into
gotify:masterfrom
DerDummePunkt:github_991_ux_improvments_configurable_oidc_login_button_text

Conversation

@DerDummePunkt

@DerDummePunkt DerDummePunkt commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Implements part of #991

adds env var GOTIFY_OIDC_IDP_NAME with default "OIDC"

variable is used in the UI for button labels at login and elevation forms

Few notes here:

  • I decided to name the new env var GOTIFY_OIDC_IDP_NAME, since the value is used for both the login button label as well as the label of the elevation form button. Let me know if you want that variable name changed.

  • I wasnt really sure what tests to add here. I could have written something like

    func TestOIDCIDPName(t *testing.T) {
     t.Setenv("GOTIFY_OIDC_IDP_NAME", "Authelia")
    
     conf, _ := Get()
    
     assert.Equal(t, "Authelia", conf.OIDC.IDPName)
     }

    in config/config_test.go, but all that would guard against is that the env variable name GOTIFY_OIDC_IDP_NAME doesnt change in the keys.go, pretty useless imho

  • I havent added any length limit/check yet, I say, if some poor soul wants to put the combined works of Williams Shakespear into that button, let them. Values longer than a few chars cause a line break in the button, personally I think that still looks fine, still, if you want some arbitrary limit on that, let me know.

image

@DerDummePunkt
DerDummePunkt requested a review from a team as a code owner August 5, 2026 13:15
@codecov

codecov Bot commented Aug 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.78%. Comparing base (aceb5ff) to head (2636b09).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1022      +/-   ##
==========================================
+ Coverage   74.63%   74.78%   +0.14%     
==========================================
  Files          66       66              
  Lines        3532     3541       +9     
==========================================
+ Hits         2636     2648      +12     
+ Misses        690      688       -2     
+ Partials      206      205       -1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@DerDummePunkt
DerDummePunkt force-pushed the github_991_ux_improvments_configurable_oidc_login_button_text branch from 5f23372 to 4b2fa6a Compare August 14, 2026 07:46
used project formatting tools to (hopefully) resolve automated checks
i dont know which tool added that, but now the CI seems to fail becuase
of it.
seems a bit odd that i have to commit stuff before the CI spits out
reproduceable results.
defintiion to have line breaks is what causes the line by line coverage
rate to drop below the threshold.

added new router test for /gotifyinfo to rectify that.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant